﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FoodList.aspx.cs" Inherits="Page_Customer_FoodList" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <title>报修信息</title>
    <%--layui--%>
    <link href="../../layui/css/layui.css" rel="stylesheet" />
    <script src="../../Scripts/jquery-1.8.0.min.js"></script>
    <script src="../../Scripts/jquery.form.js"></script>
    <script src="../../layui/laydate.js"></script>
    <script src="../../layui/layui.js"></script>
</head>
<body>
    <form class="layui-form" action="" id="AddForm" style="padding-right: 10px; padding-top: 10px;" enctype="multipart/form-data" method="post">


        <div class="layui-form-item">
            <label class="layui-form-label">
                就餐日期
            </label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="test1" placeholder="yyyy-MM-dd">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">单行选择框</label>
            <div class="layui-input-block">
                <select name="interest" lay-filter="aihao">
                    <option value=""></option>
                    <option value="0">写作</option>
                    <option value="1" selected="">阅读</option>
                    <option value="2">游戏</option>
                    <option value="3">音乐</option>
                    <option value="4">旅行</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item" pane="" id="zhushi">
        </div>
        <div class="layui-form-item" pane="" id="zhucai">
        </div>


        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="formDemo">提交</button>
            </div>
        </div>
    </form>


    <div class="layui-input-block">
    </div>

    <script>
        layui.use('form', function () {
            var form = layui.form();

           
            <%--form.on('submit(formDemo1)', function (data) {
                
                var OrderId = $(".orderId").val();
                var option = {
                    dataType: 'json',
                    url: '/Handler/TestHandler.ashx?Action=ProblemBoHui&OrderId=' + OrderId + '&cardId=<%=cardId%>',
                    success: showResponse
                };
                $('#AddForm').ajaxForm(option);
            });--%>

        });
        $(function () {

            var a = new Date();
            var mindate = a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + a.getDate();
            var maxdate = a.getFullYear() + "-" + (a.getMonth() + 1) + "-" + (a.getDate() + 1);
            lay('#version').html('-v' + laydate.v);

            //执行一个laydate实例
            laydate.render({
                elem: '#test1', //指定元素
                value: mindate,
                min: mindate,
                max: maxdate,
                done: function (value, date, endDate) {//控件选择完毕后的回调---点击日期、清空、现在、确定均会触发。
                    console.log(value); //得到日期生成的值，如：2017-08-18
                    console.log(date); //得到日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                    console.log(endDate); //得结束的日期时间对象，开启范围选择（range: true）才会返回。对象成员同上。
                }
            });
            //表单提交完成
            function showResponse(data, status) {
                if (data.status == 1) {
                    layer.msg(data.info, {
                        time: 1000 //2秒关闭（如果不配置，默认是3秒）
                    });

                }
                else {
                    layer.msg(data.info, {
                        time: 1000 //2秒关闭（如果不配置，默认是3秒）
                    });
                }
            }
        });
    </script>
</body>
</html>
